﻿using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Yqd.Enm;

namespace Yqd.Models
{
    public class Yqd_SpecialTask
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int TaskID { get; set; }

        [StringLength(200)]
        [DisplayName("督查栏目")]
        public string Name { get; set; }

        [DisplayName("专项类型")]
        public 专项类型 TaskType { get; set; }

        [DisplayName("任务标签")]
        [StringLength(500)]
        public string TaskTag { get; set; }

        [DisplayName("督查类型")]
        public long ConfigID { get; set; }

        [DisplayName("督查内容")]
        public string Remark { get; set; }

        [DisplayName("主管单位")]
        [StringLength(50)]
        public string LeadUnit { get; set; }

        [DisplayName("管理员")]
        [StringLength(500)]
        public string Admins { get; set; }

        [DisplayName("协同单位")]
        public string CoUnit { get; set; }

        [DisplayName("协同管理员")]
        public string CoAdmins { get; set; }

        [DisplayName("督查人员")]
        public string Inspector { get; set; }

        [DisplayName("状态")]
        public 栏目状态 Status { get; set; }

        [DisplayName("排序")]
        public int Tactic { get; set; }

        [DisplayName("创建时间")]
        public DateTime Instime { get; set; }

        [DisplayName("创建者")]
        [StringLength(50)]
        public string EmployeeCode { get; set; }

        [DisplayName("创建者单位")]
        [StringLength(50)]
        public string UnitCode { get; set; }

        /// <summary>
        /// 编号前缀
        /// </summary>
        public string TaskCode { get; set; }

        public int IsDel { get; set; } = 0;
    }

}
